package com.lan.java8.model.info;

import com.lan.java8.antlr.Java8Parser;
import lombok.Data;
import org.antlr.v4.runtime.ParserRuleContext;

@Data
public class ImportGen {

    private String var = "import";

    private String name;

    public void start(Java8Parser.ImportDeclarationContext item) {
//        System.out.println(item.getText());
        ParserRuleContext ruleContext = item.importName();
        if (ruleContext != null) {
            this.name = ruleContext.getText();
        }

    }
}
